package interfaces;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;

/**
 *
 * @author Maja
 */
public interface GourmetGrossistInterface extends Remote {

    public ConnectionInterface getConnection(String username, String password) throws RemoteException, SQLException;

    public void addConnection(ConnectionInterface c) throws RemoteException;

    public void removeActionListener(ConnectionInterface c) throws RemoteException;

    public void notifyListeners(RemoteActionInterface rai) throws RemoteException;
}
